package com.zqh.irmadscore.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zqh.irmadscore.model.dto.FailureItemDTO;
import com.zqh.irmadscore.model.dto.MainItemDTO;
import com.zqh.irmadscore.model.entity.FailureItem;
import com.zqh.irmadscore.model.entity.MainItem;

import java.util.List;

public interface MainItemService extends IService<MainItem> {


    void saveMainItemWithDataItems(MainItemDTO dto);

    MainItemDTO getMainItemWithDataItems(Integer id);

    void updateMainItemWithDataItems(MainItemDTO dto);

//    List<FailureItem> getHistory();

    List<MainItemDTO> getAllMainItem();
}
